home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
mint
/
lib
/
mlib42d.zoo
/
diffh
< prev
next >
Wrap
Text File
|
1994-01-16
|
32KB
|
1,411 lines
*** 41.1 1993/11/03 14:12:50
--- ./PatchLev.h 1993/11/04 03:25:52
***************
*** 3,6 ****
* directory.
*/
! #define _PatchLevel "41"
--- 3,6 ----
* directory.
*/
! #define _PatchLevel "42"
*** 41.1 1993/11/03 14:12:50
--- ./assert.h 1994/01/09 09:01:46
***************
*** 6,12 ****
/* Allow this file to be included multiple times
with different settings of NDEBUG. */
#undef assert
- #undef assertval
#ifndef _COMPILER_H
#include <compiler.h>
--- 6,11 ----
***************
*** 19,25 ****
__EXTERN void __eprintf __PROTO((const char *expression, const long line,
const char *filename));
! __EXTERN __EXITING abort __PROTO((void));
#ifdef __cplusplus
}
--- 18,24 ----
__EXTERN void __eprintf __PROTO((const char *expression, const long line,
const char *filename));
! __EXTERN __EXITING abort __PROTO((void)) __NORETURN;
#ifdef __cplusplus
}
***************
*** 27,44 ****
#ifdef NDEBUG
! #define assert(cond)
! #define assertval(cond)
#else
#if __STDC__
#define assert(cond) \
! if(!(cond)) \
! { __eprintf(#cond,(long)(__LINE__), __FILE__); abort(); }
!
! #define assertval(cond) \
! ((cond) ? 1 : \
( __eprintf(#cond,(long)(__LINE__), __FILE__), abort(), 0 ))
#else
--- 26,39 ----
#ifdef NDEBUG
! #define assert(cond) (void *)0
#else
#if __STDC__
#define assert(cond) \
! ((cond) ? 0 : \
( __eprintf(#cond,(long)(__LINE__), __FILE__), abort(), 0 ))
+
#else
***************
*** 56,66 ****
#endif /* __SOZOBON__ */
#define assert(cond) \
! if(!(cond)) \
! { __eprintf("cond", (long)(__LINE__), __FILE__); abort(); }
!
! #define assertval(cond) \
! ((cond) ? 1: \
( __eprintf("cond", (long)(__LINE__), __FILE__), abort(), 0))
#endif /* __STDC__ */
--- 51,57 ----
#endif /* __SOZOBON__ */
#define assert(cond) \
! ((cond) ? 0 : \
( __eprintf("cond", (long)(__LINE__), __FILE__), abort(), 0))
#endif /* __STDC__ */
*** 41.1 1993/11/03 14:12:50
--- ./compiler.h 1993/11/30 18:49:16
***************
*** 33,38 ****
--- 33,39 ----
/* __PTRDIFF_TYPEDEF__: the type of the difference of two pointers */
/* __WCHAR_TYPEDEF__: wide character type (i.e. type of L'x') */
/* __EXITING: the type of a function that exits */
+ /* __NORETURN: attribute of a function that exits (gcc >= 2.5) */
/* __CDECL: function must get parameters on stack */
/* if !__CDECL, passing in registers is OK */
***************
*** 68,74 ****
--- 69,80 ----
# define _WCHAR_T __WCHAR_TYPEDEF__
#endif
#endif
+ #if __GNUC__ > 2 || __GNUC_MINOR__ >= 5 /* false for gcc < 2.5 */
+ #define __NORETURN __attribute__ ((noreturn))
+ #define __EXITING void
+ #else
#define __EXITING volatile void
+ #endif
#define __VA_LIST__ void *
#ifndef __NO_INLINE__
# define __GNUC_INLINE__
***************
*** 156,161 ****
--- 162,171 ----
#ifndef __CDECL
#define __CDECL
+ #endif
+
+ #ifndef __NORETURN
+ #define __NORETURN
#endif
#ifndef __NULL
*** 41.1 1993/11/03 14:12:50
--- ./gdbm.h 1993/12/01 20:42:16
***************
*** 1,11 ****
/* gdbm.h - The include file for dbm users. */
/* This file is part of GDBM, the GNU data base manager, by Philip A. Nelson.
! Copyright (C) 1990, 1991 Free Software Foundation, Inc.
GDBM is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
! the Free Software Foundation; either version 1, or (at your option)
any later version.
GDBM is distributed in the hope that it will be useful,
--- 1,11 ----
/* gdbm.h - The include file for dbm users. */
/* This file is part of GDBM, the GNU data base manager, by Philip A. Nelson.
! Copyright (C) 1990, 1991, 1993 Free Software Foundation, Inc.
GDBM is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
! the Free Software Foundation; either version 2, or (at your option)
any later version.
GDBM is distributed in the hope that it will be useful,
***************
*** 23,35 ****
Computer Science Department
Western Washington University
Bellingham, WA 98226
- phone: (206) 676-3035
*************************************************************************/
! #ifdef __cplusplus
! extern "C" {
! #endif
/* Parameters to gdbm_open for READERS, WRITERS, and WRITERS who
can create the database. */
--- 23,34 ----
Computer Science Department
Western Washington University
Bellingham, WA 98226
*************************************************************************/
! /* Protection for multiple includes. */
! #ifndef _GDBM_H_
! #define _GDBM_H_
/* Parameters to gdbm_open for READERS, WRITERS, and WRITERS who
can create the database. */
***************
*** 37,48 ****
--- 36,50 ----
#define GDBM_WRITER 1 /* A writer. */
#define GDBM_WRCREAT 2 /* A writer. Create the db if needed. */
#define GDBM_NEWDB 3 /* A writer. Always create a new db. */
+ #define GDBM_FAST 16 /* Write fast! => No fsyncs. */
/* Parameters to gdbm_store for simple insertion or replacement in the
case that the key is already in the database. */
#define GDBM_INSERT 0 /* Never replace old data with new. */
#define GDBM_REPLACE 1 /* Always replace old data with new. */
+ /* Parameters to gdbm_setopt, specifing the type of operation to perform. */
+ #define GDBM_CACHESIZE 1 /* Set the cache size. */
/* The data and key structure. This structure is defined for compatibility. */
typedef struct {
***************
*** 54,78 ****
/* The file information header. This is good enough for most applications. */
typedef struct {int dummy[10];} *GDBM_FILE;
!
! /* These are the routines! */
!
! extern GDBM_FILE gdbm_open ();
! extern void gdbm_close ();
- extern datum gdbm_fetch ();
! extern int gdbm_store ();
!
! extern int gdbm_delete ();
!
! extern datum gdbm_firstkey ();
! extern datum gdbm_nextkey ();
! extern int gdbm_reorganize ();
/* gdbm sends back the following error codes in the variable gdbm_errno. */
typedef enum { GDBM_NO_ERROR,
--- 56,140 ----
/* The file information header. This is good enough for most applications. */
typedef struct {int dummy[10];} *GDBM_FILE;
! /* Determine if the C(++) compiler requires complete function prototype */
! #if __STDC__ || defined(__cplusplus) || defined(c_plusplus)
! #define GDBM_Proto(x) x
! #else
! #define GDBM_Proto(x) ()
! #endif /* NeedFunctionPrototypes */
! /* External variable, the gdbm build release string. */
! extern char *gdbm_version;
! /* GDBM C++ support */
! #if defined(__cplusplus) || defined(c_plusplus)
! extern "C" {
! #endif
! /* These are the routines! */
! extern GDBM_FILE gdbm_open GDBM_Proto((
! char *file,
! int block_size,
! int flags,
! int mode,
! void (*fatal_func)()
! ));
!
! extern void gdbm_close GDBM_Proto((
! GDBM_FILE dbf
! ));
!
! extern int gdbm_store GDBM_Proto((
! GDBM_FILE dbf,
! datum key,
! datum content,
! int flags
! ));
!
! extern datum gdbm_fetch GDBM_Proto((
! GDBM_FILE dbf,
! datum key
! ));
!
! extern int gdbm_delete GDBM_Proto((
! GDBM_FILE dbf,
! datum key
! ));
!
! extern datum gdbm_firstkey GDBM_Proto((
! GDBM_FILE dbf
! ));
!
! extern datum gdbm_nextkey GDBM_Proto((
! GDBM_FILE dbf,
! datum key
! ));
!
! extern int gdbm_reorganize GDBM_Proto((
! GDBM_FILE dbf
! ));
!
! extern void gdbm_sync GDBM_Proto((
! GDBM_FILE dbf
! ));
!
! extern int gdbm_exists GDBM_Proto((
! GDBM_FILE dbf,
! datum key
! ));
!
! extern int gdbm_setopt GDBM_Proto((
! GDBM_FILE dbf,
! int optflag,
! int *optval,
! int optlen
! ));
+ #if defined(__cplusplus) || defined(c_plusplus)
+ }
+ #endif
/* gdbm sends back the following error c